//
//  ZSNFirstViewController.swift
//  AgoraAVPlayerZhaosn
//
//  Created by zhaosuning on 2022/1/5.
//

import UIKit

class ZSNFirstViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.title = "首页"
        self.view.backgroundColor = UIColor.white
        // Do any additional setup after loading the view.
        
        let btnClick = UIButton.init(frame: CGRect(x: 30, y: 100, width: 200, height: 50))
        btnClick.backgroundColor = UIColor.yellow
        btnClick.setTitle("点击进入", for: .normal)
        btnClick.layer.cornerRadius = 23.5
        btnClick.titleLabel?.textAlignment = .center
        btnClick.layer.masksToBounds = true
        btnClick.titleLabel?.font = UIFont.systemFont(ofSize: 18)
        btnClick.setTitleColor(UIColor(red: 50/255, green: 71/255, blue: 1, alpha: 1), for: UIControl.State.normal)
        btnClick.addTarget(self, action: #selector(btnClickClick), for: UIControl.Event.touchUpInside)
        self.view.addSubview(btnClick)
        
    }
    
    @objc func btnClickClick() {
        //let vc = ZSNAVPlayerViewController.init()
        
        //let vc = ZSNWKWebViewVC.init()
        
        let vc = ZSNAVAudioPlayerViewController.init()
        
        self.navigationController?.pushViewController(vc, animated: true)
        NSLog("打印了 点击进入下一页")
    }

    

}
